package cpt202.project.dao;

import cpt202.project.entity.Book;
import cpt202.project.entity.Record;
import cpt202.project.entity.User;
import org.springframework.stereotype.Service;

@Service
public interface UserMapper {
    // 插入一个用户，通过受影响的行数来判断是否执行成功
    Integer insert(User user);

    //根据邮箱查找是否存在该用户，若没有直接返回null
    User findUserName(String email);

    //根据email更新password
    Integer updatePwdByemail(String email,String newpsd);

    String getpassword(String email);

    Integer insertdefaultbook(String email);


}
